package com.alfayun.fiscalriskanalysis.product;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/client/product")
public class ProductController {
	
	@Autowired
	private ProductService service;
	
	@RequestMapping("")
	public String page(Model model) {
		model.addAttribute("products", service.validProducts());
		return "client/product";
	}

}
